home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 January / EnterCD 0105.iso / Grafika / DigiBookShelf 11.0 / D110TRENG.EXE / HELP / regist.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2004-09-21  |  3.6 KB  |  159 lines

  1. function launcher(command)
  2. {
  3.    if(command == "step00")
  4.    {
  5.       _root.loadMC();
  6.    }
  7.    else if(command == "step01")
  8.    {
  9.       _root.emailCheck();
  10.    }
  11.    else if(command == "step02")
  12.    {
  13.       _root.serialCheck();
  14.    }
  15.    else if(command == "nonStep")
  16.    {
  17.       _root.stay();
  18.    }
  19.    else if(command == "domain")
  20.    {
  21.       _root.debug = "domain";
  22.       _root.domain();
  23.    }
  24.    else if(command == "mailmod")
  25.    {
  26.       _root.mailmod();
  27.    }
  28. }
  29. function loadMC()
  30. {
  31.    if(_root.res_code == 0)
  32.    {
  33.       swf_url = "http://www.kuraemon.com/software/regist/" + productid;
  34.       loadMovie(swf_url,_root.baseMC.targetMC);
  35.       _root.nextFrame();
  36.    }
  37.    else if(_root.res_code != 2)
  38.    {
  39.       alertMC.gotoAndStop(2);
  40.       alertMC.message = _root.res_message;
  41.       _root.nextFrame();
  42.    }
  43. }
  44. function emailCheck()
  45. {
  46.    var message = "Please confirm the above address.";
  47.    if(_root.res_code == 0)
  48.    {
  49.       if(_root.serial_enable == 1)
  50.       {
  51.          if(_root.password == "")
  52.          {
  53.             _root.baseMC.targetMC._y = 400;
  54.             alertMC.gotoAndStop(3);
  55.             alertMC.lavel = "pass";
  56.             alertMC.email = _root.baseMC.targetMC.email;
  57.             alertMC.message = message;
  58.          }
  59.          else
  60.          {
  61.             _root.baseMC.targetMC._y = 400;
  62.             alertMC.gotoAndStop(3);
  63.             alertMC.lavel = "serial";
  64.             alertMC.email = _root.baseMC.targetMC.email;
  65.             alertMC.message = message;
  66.          }
  67.       }
  68.       else if(_root.serial_enable == 0)
  69.       {
  70.          _root.baseMC.targetMC._y = 400;
  71.          alertMC.gotoAndStop(3);
  72.          alertMC.lavel = "digipass";
  73.          alertMC.email = _root.baseMC.targetMC.email;
  74.          alertMC.message = message;
  75.       }
  76.    }
  77.    else if(_root.res_code == 401)
  78.    {
  79.       _root.baseMC.targetMC._y = 400;
  80.       alertMC.gotoAndStop(3);
  81.       alertMC.lavel = "serial";
  82.       alertMC.email = _root.baseMC.targetMC.email;
  83.       alertMC.message = message;
  84.    }
  85.    else if(_root.res_code != 2)
  86.    {
  87.       _root.baseMC.targetMC._y = 400;
  88.       alertMC.gotoAndStop(2);
  89.       alertMC.message = _root.res_message;
  90.    }
  91. }
  92. function serialCheck()
  93. {
  94.    if(_root.res_code == 0)
  95.    {
  96.       _root.baseMC.targetMC.gotoAndStop("complite");
  97.       alertMC.gotoAndStop(1);
  98.    }
  99.    else if(_root.res_code != 2)
  100.    {
  101.       _root.baseMC.targetMC._y = 400;
  102.       alertMC.gotoAndStop(2);
  103.       alertMC.message = _root.res_message;
  104.    }
  105. }
  106. function stay()
  107. {
  108.    if(_root.res_code == 0)
  109.    {
  110.       _root.baseMC.targetMC._y = 400;
  111.       alertMC.gotoAndStop(2);
  112.       alertMC.message = _root.res_message;
  113.    }
  114.    else if(_root.res_code != 2)
  115.    {
  116.       _root.baseMC.targetMC._y = 400;
  117.       alertMC.gotoAndStop(2);
  118.       alertMC.message = _root.res_message;
  119.    }
  120. }
  121. function domain()
  122. {
  123.    if(_root.res_code == 0)
  124.    {
  125.       if(_root.serial_enable == 1)
  126.       {
  127.          _root.baseMC.targetMC.gotoAndStop("serial");
  128.       }
  129.       else if(_root.serial_enable == 0)
  130.       {
  131.          _root.baseMC.targetMC.gotoAndStop("complite");
  132.          alertMC.gotoAndStop(1);
  133.       }
  134.    }
  135.    else if(_root.res_code != 2)
  136.    {
  137.       if(_root.res_code == 404)
  138.       {
  139.          _root.baseMC.targetMC._y = 400;
  140.          alertMC.gotoAndStop(2);
  141.          alertMC.message = _root.res_message;
  142.       }
  143.    }
  144. }
  145. function mailmod()
  146. {
  147.    _root.baseMC.targetMC.email = _root.email;
  148. }
  149. is_connect = "";
  150. email = "";
  151. password = "";
  152. serial = "";
  153. fs = "close";
  154. load_state = false;
  155. productid = "";
  156. serial_enable = "";
  157. magreg = "";
  158. magregenable = "";
  159.